package com.itheima.jihe;


public class Student {
    private String no;
    private String name;
    private int age;
    private Gender gender;

    public Student() {
    }


    public Student(String no, String name, int age, Gender gender) {
        this.no = no;
        this.name = name;
        this.age = age;
        this.gender = gender;
    }


    public String getNo() {
        return no;
    }


    public void setNo(String no) {
        this.no = no;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public int getAge() {
        return age;
    }


    public void setAge(int age) {
        this.age = age;
    }


    public Gender getGender() {
        return gender;
    }


    public void setGender(Gender gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Student{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                '}';
    }
}


